<?php

declare(strict_types=1);

/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use Hyperf\HttpServer\Router\Router;

//不需要
Router::addGroup('/v1/', function () {
    //登录
    Router::post('login', 'App\Controller\AdminUserController@login');
});


Router::addGroup('/v1/', function () {
    //获取登录用户详情
    Router::get('getAdminDetail', 'App\Controller\AdminUserController@getDetail');
    //修改密码
    Router::post('updateUserPassword', 'App\Controller\AdminUserController@updatePassword');
},
    ['middleware' => [Phper666\JWTAuth\Middleware\JWTAuthMiddleware::class]]
);


Router::get('/favicon.ico', function () {
    return '';
});
